// eslint-disable-next-line no-unused-vars
import Vue from 'vue'
import {
  ConfigProvider,
  Button,
  FormModel,
  Input,
  Icon,
  message,
  Layout,
  Menu,
  Dropdown,
  Card,
  Table,
  Row,
  Col,
  Modal,
  Select,
  Switch,
  Upload,
  breadcrumb,
  Tag,
  Descriptions,
  Statistic
} from 'ant-design-vue'

// 挂载到全局, duration: 默认自动关闭延时; maxCount:最大显示数
message.config({
  top: '100px',
  duration: 2,
  maxCount: 3
})

// 初始化为全局
Vue.prototype.$message = message
Vue.prototype.$confirm = Modal.confirm

Vue.use(Button)
Vue.use(FormModel)
Vue.use(Input)
Vue.use(Icon)
Vue.use(Layout)
Vue.use(Menu)
Vue.use(Dropdown)
Vue.use(Card)
Vue.use(Table)
Vue.use(Row)
Vue.use(Col)
Vue.use(ConfigProvider)
Vue.use(Modal)
Vue.use(Select)
Vue.use(Switch)
Vue.use(Upload)
Vue.use(breadcrumb)
Vue.use(Tag)
Vue.use(Descriptions)
Vue.use(Statistic)
